package com.goldsign.pay.provider.user.service;

import com.goldsign.pay.provider.user.to.UserLoginRespDTO;
import com.goldsign.pay.common.service.BaseService;
import com.goldsign.pay.provider.user.to.UserLoginReqDTO;
import com.goldsign.pay.provider.user.util.User;

/**
 * Created by xiaojingjing on 2018/5/17.
 */
public interface UserLoginService extends BaseService<UserLoginReqDTO> {
    /**
     * 用户登录
     * @param req
     * @return
     */
    UserLoginRespDTO userLogin(UserLoginReqDTO req);

    /**
     * 处理返回结果
     * @param userLoginResp
     * @param userLoginReq
     * @return
     * @throws Exception
     */
    User handleResult(UserLoginRespDTO userLoginResp, UserLoginReqDTO userLoginReq);

    /**
     * 登出
     * @param tokenId
     * @return
     * @throws Exception
     */
    public void appLogout(String tokenId)throws Exception;

}
